package vip.finance.makemoney.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import vip.finance.makemoney.apiSpider.IApiSpider;
import vip.finance.makemoney.apiSpider.result.StockDetailInfo;
import vip.finance.makemoney.apiSpider.snowball.SnowRealTimeResult;
import vip.finance.makemoney.entity.EtfStock;
import vip.finance.makemoney.mapper.EtfRecordMapper;
import vip.finance.makemoney.service.ETFService;
import vip.finance.makemoney.service.IEtfRecordService;
import vip.finance.makemoney.service.IEtfStockService;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @author 杨滨
 * @date 2023年02月03日
 */
@Slf4j
@Service
public class ETFServiceImpl implements ETFService {

    @Resource
   private IEtfRecordService etfRecordService;
    @Resource
    private IEtfStockService etfStockService;
    @Resource
    private RedisService redisService;

    @Override
    public Object etfList() {
        BigDecimal usdToRMB;

        List<EtfStock> etfStockList = etfStockService.lambdaQuery().eq(EtfStock::getEtfCode, "SZ159607").list();
        for (EtfStock etfStock : etfStockList) {
            SnowRealTimeResult.DataBean.ItemsBean snowRealTime = redisService.getSnowRealTime(etfStock.getStockCode());

        }

        return null;
    }
}
